<template>
    <h1>{{msg}}</h1>
</template>
<script>
    export default{
        data(){
            return{
                msg:"adssss"
            }
        },
        watch:{
            msg(newVal, oldVal){
                console.log(this.msg);
                console.log(oldVal);
            }
        },
    }
</script>
